package com.ai.service.made.impl;


import com.ai.entity.exam.MirrorExamQuestions;
import com.ai.mapper.made.MirrorExamQuestionsMapper;
import com.ai.service.made.MirrorExamQuestionsService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 试卷题目(MirrorExamQuestions)表服务实现类
 *
 * @author makejava
 * @since 2024-07-01 18:08:41
 */
@Service
public class MirrorExamQuestionsServiceImpl extends ServiceImpl<MirrorExamQuestionsMapper, MirrorExamQuestions> implements MirrorExamQuestionsService {
    @Override
    public List<MirrorExamQuestions> selectByExamId(Integer id) {
        QueryWrapper<MirrorExamQuestions> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("exam_id", id);
        return this.list(queryWrapper);
    }

    @Override
    public MirrorExamQuestions selectById(Integer examQuestionId) {
        return this.getById(examQuestionId);
    }
}
